"""
1、创建一个Teacher类并且继承object
2、创建构造方法，并且设置属性  name,age,gender,id（工号）,course(课程)
3、创建魔法方法输出对象数据
4、测试执行
"""
class Teacher(object):
    def __init__(self,name,age,gender,id,course):
        self.name = name
        self.age = age
        self.gender = gender
        self.id = id
        self.course = course

    def __str__(self):
        return (f"{self.name}\t{self.age}\t"
                f"{self.gender}\t{self.id}\t{self.course}")

a = Teacher("张三",18,"男",1,"python课程")
print(a)
